package de.blitzcoder.collide.engine.parser;

import java.util.LinkedList;

/**
 *
 * @author blitzcoder
 */
public class CodeType extends CodeObject {
    
    private LinkedList<CodeObject> children;
    
    public CodeType(String name,int line) {
        super(name,line);
        children = new LinkedList<CodeObject>();
    }
    
    public LinkedList<CodeObject> getChildren() {
        return children;
    }

    @Override
    public String getObjectType() {
        return "Type";
    }

    public boolean equals(Object o) {
        if (o instanceof CodeType) {
            CodeType t = (CodeType) o;
            return t.getName().equals(getName());
        }
        return false;
    }
    
}
